#!/usr/bin/python

import socket
import time

srvSock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
srvSock.bind(('', 11111))
srvSock.listen(5)
print "Server listening on port 11111"
while 1:
    cliSock, cliAddr = srvSock.accept()
    msg = cliSock.recv(1024)
    print "Message = %s" % msg
#    time.sleep(3)
    cliSock.send("12-14-2012 1:20:17.207,GOB,Go back from whence you came!;12-14-2012 1:20:16:891,gBluth,There is ALWAYS money in...;12-14-2012 1:20:17.207,lindsey,Hot Ham Water Recipe;12-14-2012 1:20:16:891,buster,I'm going to ARMY;");
#    cliSock.send("coooookiiee%129;196.168.1.124;47%DEC;812.232.11.22;23000%kitchen;111.11.1.111;8111%");


    cliSock.close()
